package com.isprint.jslx.codemsg;

import com.jfinal.kit.Prop;
import com.jfinal.kit.PropKit;

import java.io.File;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by ydw on 2017/7/14.
 */
public class CodeMsg {
    public static Map<String, String> STATUS_CODE_MAP = new HashMap<String, String>();
    public void inniStatusCodeConfig(){
        Prop props = PropKit.use("config/status-code.properties");
        try {
            Enumeration en = props.getProperties().keys();
            while (en.hasMoreElements()) {
                String name = en.nextElement().toString();
                String path = props.getProperties().getProperty(name);
                STATUS_CODE_MAP.put(name, path);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
